import api from "@/utils/api";
import request from "@/utils/axios";

type userModel = {
    _id?: string,
    username: string,
    userpwd: string,
    type?: string
}

export function userLoign(data: userModel) {
    return request.post(api.userinfo.login, data);
}
export function getuserlist(params: any) {
    return request.get(api.userinfo.getuserlist, { params })
}
export function registe(data: any) {
    return request.post(api.userinfo.registe,data)
}